﻿using System.Windows;
using WpfApp1.ViewModels;

namespace WpfApp1.Views
{
    /// <summary>
    /// MainAppWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainAppWindow
    {
        public MainAppWindow()
        {
            InitializeComponent();
            this.DataContext = new MainAppViewModel();
        }

        private void MenuManager_Selected(object sender, RoutedEventArgs e)
        {
            if (!IsLoaded)
            {
                return;
            }
            TabMain.SelectedIndex = 0;
        }
        private void ShopManager_Selected(object sender, RoutedEventArgs e)
        {
            if (!IsLoaded)
            {
                return;
            }
            TabMain.SelectedIndex = 1;
        }
    }
}
